package com.joysuch.wwyt.mh.websocket;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @Author ZhangDong
 * @Date 2021/2/4 10:24
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class MonitorWebsocketDto<T> {

    private String busType;
    private long sendTime;
    private T data;

    public MonitorWebsocketDto(String busType, T data) {
        this.busType = busType;
        this.data = data;
        this.sendTime = System.currentTimeMillis();
    }
}
